:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-soft: #f3f5f1;
  --text: #101828;
  --muted: #5f6c5b;
  --line: #e4e8e1;
  --green-soft: #cfe3c9;
  --green: #55b44a;
  --green-dark: #3f9638;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228, 232, 225, 0.9);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  gap: 28px;
  color: #475467;
  font-size: 15px;
}

.header-cta,
.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--green);
  color: white;
  font-weight: 600;
  transition: 0.2s ease;
}

.header-cta:hover,
.card-button:hover {
  background: var(--green-dark);
}

.hero {
  background: var(--green-soft);
  border-bottom: 1px solid #bfd3b8;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  padding: 72px 0;
  align-items: end;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #365f2e;
}

.eyebrow-green { color: #47963d; }

.hero h1,
.section-head h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.03;
}

.hero p {
  max-width: 640px;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}

.hero-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  margin-top: 34px;
}

.field input,
.field select {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow);
}

.field input:focus,
.field select:focus {
  border-color: #7abf71;
}

.hero-card {
  justify-self: end;
  width: min(100%, 330px);
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card-label {
  font-size: 14px;
  color: #6b7280;
}

.hero-card-score {
  margin-top: 8px;
  font-size: 64px;
  line-height: 0.95;
  font-weight: 800;
  color: var(--green);
}

.hero-card-text {
  margin-top: 12px;
  color: #667085;
  line-height: 1.65;
}

.listing-section {
  padding: 72px 0 90px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
}

.results-box {
  flex-shrink: 0;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: #667085;
  font-size: 15px;
}

.freelancers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.freelancer-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.freelancer-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.freelancer-avatar {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.freelancer-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.freelancer-role {
  margin-top: 4px;
  color: #667085;
  font-size: 14px;
}

.freelancer-meta {
  margin-bottom: 16px;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

.freelancer-description {
  min-height: 78px;
  margin: 0 0 18px;
  color: #475467;
  font-size: 15px;
  line-height: 1.75;
}

.freelancer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 58px;
  align-content: flex-start;
  margin-bottom: 22px;
}

.freelancer-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e6f2e3;
  color: #3f7f39;
  font-size: 12px;
  font-weight: 600;
}

.freelancer-card .card-button {
  width: 100%;
  margin-top: auto;
  border: 0;
  cursor: pointer;
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero-grid,
  .freelancers-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    justify-self: stretch;
    width: 100%;
  }

  .hero-filters {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 70px;
  }

  .hero-grid {
    padding: 48px 0;
  }

  .listing-section {
    padding: 48px 0 64px;
  }

  .freelancer-card {
    padding: 20px;
  }
}