.fl-hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.fl-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  background:
    radial-gradient(52% 60% at 82% 18%, rgba(120, 190, 255, .95), transparent 62%),
    radial-gradient(46% 58% at 96% 62%, rgba(150, 210, 255, .9), transparent 60%),
    radial-gradient(58% 70% at 66% 88%, rgba(90, 150, 240, .55), transparent 64%),
    radial-gradient(50% 55% at 20% 10%, rgba(246, 216, 240, .95), transparent 62%),
    radial-gradient(44% 50% at 4% 52%, rgba(232, 226, 250, .9), transparent 60%),
    linear-gradient(115deg, #FBF6FA 0%, #EFF1FC 42%, #DCE9FB 72%, #CFE2FA 100%);
  filter: blur(4px);
}

.fl-hero h1 {
  font-weight: 400;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 110%;
  text-align: center;
  font-style: normal;
  letter-spacing: -0.02em;
}

.fl-hero-sub {
  font-weight: 400;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 160%;
  text-align: center;
}

.search-bar {
  display: flex;
  gap: 8px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding: 8px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(11, 11, 26, .1);
  width: 1135px;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar input:focus { outline: none; }
.search-bar:focus-within {
  box-shadow: 0 6px 24px rgba(11, 11, 26, .1), 0 0 0 2px var(--blue);
}
.search-bar .btn { 
  width: 175px;
  height: 44px;
 }

/* .cat-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 20px auto 0;
} */

.cat-rail {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  max-width: 1135px;
  margin: 12px auto 0;
}

.cat-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-block: 2px;
  flex: 1;
  min-width: 0;
}
.cat-track::-webkit-scrollbar { display: none; }

/* .chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .72);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
} */

 .chip {
  background: rgba(34, 24, 223, 0.05);
  color: #1a1a1a;
  border: 1px solid rgba(34, 24, 223, 0.22);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  white-space: nowrap;
  
}

.chip:hover { color: var(--blue); }

.rail-btn {
  width: 41px;
  height: 41px;
  border-radius: 20.5px;
  padding: 1px 2px 1px 1px;
  background: rgba(34, 24, 223, 0.2);
  color: #2218df;
  display: grid;
  place-items: center;
  flex: 0 0 41px;
  opacity: 0.8;
}

/* .rail-btn:hover { background: #fff; } */
.rail-btn[disabled] { opacity: .35; cursor: default; }

/* ---------- 3. Why choose ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.why-card {
  padding: 26px 22px 28px;
  border: 1px solid #DDE3F5;
  border-radius: var(--radius);
  background: #F7F9FE;
}
.why-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 11px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
}
.why-card h3 { font-size: 16px; font-weight: 700; }
.why-card p {
  margin-top: 9px;
  font-size: 13.5px;
  color: var(--muted);
}

.audience-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 26px auto 0;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.toggle-center { display: flex; justify-content: center; }

.audience-toggle button {
  padding: 9px 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.audience-toggle button[aria-selected="true"] {
  background: var(--blue);
  color: #fff;
}

.steps-band {
  margin-top: 70px;
  padding-block: 0 40px;
  background: linear-gradient(120deg, var(--blue), #6E63F0);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  display: grid;
  grid-template-columns: 45px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: start;
}

.step-avatar {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 135px;
  height: 90px;
  margin: 0 auto 0;
  transform: translateY(-45px);
  border-radius: 50px;
  background: linear-gradient(140deg, #C9D4F5, #EEF2FE);
  object-fit: cover;
}

.step-num {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin-top: 0;
  border-radius: 25px;
  background: #fff;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

.step-body {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
  min-height: 110px;
}

.step h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.step p {
  margin-top: 7px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .8);
}
.steps-grid[hidden] { display: none; }
/* ---------- 5. Carousel shell ---------- */
.carousel { position: relative; margin-top: 40px; }

.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* room for card shadow + focus ring */
  margin-inline: -4px;
  padding: 6px 4px 18px 24px;
  scroll-padding-left: 24px;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 11px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: opacity .18s ease, color .18s ease;
}
.carousel-btn:hover { color: var(--blue); }
.carousel-btn[disabled] { opacity: 0; pointer-events: none; }
.carousel-prev { left: -18px; }
.carousel-next { right: -18px; }

/* ---------- 6. Project cards ---------- */
.project-card {
  flex: 0 0 306px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  background: var(--surface);
  height: 348px;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 0 8px 0 rgba(59, 130, 246, 0.12);
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.project-card h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.bookmark {
  flex: 0 0 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .18s ease;
}
.bookmark:hover,
.bookmark[aria-pressed="true"] { color: var(--blue); }

.project-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.tag-new {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-blue);
  color: var(--blue);
  font-weight: 700;
}

.project-desc {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.budget {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}
.budget-ico {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-blue);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}
.budget-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.budget-value {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.project-card .btn { align-self: flex-end; margin-top: 16px; }

/* ---------- 7. Freelancer cards ---------- */
.freelancer-card {
  flex: 0 0 288px;
  scroll-snap-align: start;
  height: 334px;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

.rate {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.fl-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 14px auto 0;
}
.fl-avatar img,
.fl-avatar .avatar-ph {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(140deg, #D8DEF2, #F1F4FC);
}
/* online indicator */
.fl-avatar::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #22C55E;
}

.fl-name {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.fl-role {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.rating strong { color: var(--ink); font-size: 12.5px; }
.rating svg { width: 13px; height: 13px; flex: 0 0 13px; color: #F5B301; }

.skills {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  min-height: 24px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.skill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.freelancer-card .btn { margin-top: auto; }

/* ---------- 8. Difference panel ---------- */
.diff-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 4vw, 48px);
  border-radius: 20px;
  background: linear-gradient(120deg, var(--blue), #6E63F0);
  color: rgba(255, 255, 255, .85);
}
/* decorative squiggle corners */
.diff-panel::before,
.diff-panel::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, .16) 0 3px,
      transparent 3px 11px
    );
  pointer-events: none;
}
.diff-panel::before { top: -30px; left: -30px; }
.diff-panel::after  { bottom: -30px; right: -30px; }

.diff-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.diff-head h2 {
  /* font-size: clamp(24px, 3.2vw, 36px); */
  color: #fff;
  font-weight: 400;
  font-style: Regular;
  font-size: 48px;
  line-height: 110%;
  letter-spacing: -2%;

}
.diff-head p {
  margin-top: 12px;
  max-width: 622px;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  letter-spacing: -2%;
}

/* toggle sits on the dark panel, so it needs its own skin */
.diff-panel .audience-toggle {
  margin: 0;
  background: rgba(255, 255, 255, .16);
  border-color: transparent;
}
.diff-panel .audience-toggle button { color: rgba(255, 255, 255, .8); }
.diff-panel .audience-toggle button[aria-selected="true"] {
  background: #fff;
  color: var(--blue);
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin-top: 36px;
}
.diff-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}

.diff-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 20px;
  border-radius: 50%;
  background: #DCEAF9;
  color: var(--blue);
}
.diff-item h3 { font-size: 15px; color: #fff; }
.diff-item p {
  margin-top: 6px;
  font-size: 13px;
}

/* ---------- 9. Closing CTA ---------- */
.closing {
  padding-block: clamp(40px, 5vw, 64px);
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}
.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.closing h2 {
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.45;
  font-weight: 400;
  line-height: 46px;
  letter-spacing: 0px;

}
.closing .btn { padding-inline: 40px; }

@media (max-width: 1024px) {
  .why-grid   { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); row-gap: 8px; }
  .diff-grid  { grid-template-columns: 1fr; }
  .carousel-prev { left: -8px; }
  .carousel-next { right: -8px; }
}

@media (max-width: 700px) {
  .diff-head { flex-direction: column; }
}

@media (max-width: 560px) {
  .why-grid   { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }

  .search-bar { flex-wrap: wrap; }
  .search-bar input { flex-basis: 100%; }
  .search-bar .btn { flex: 1; }

  /* arrows would overlap the cards at this width */
  .carousel-btn { display: none; }
  .carousel-track { scroll-snap-type: x proximity; }
  .project-card { flex-basis: 82vw; }
  .freelancer-card { flex-basis: 66vw; }

  .closing-inner { flex-direction: column; align-items: stretch; }
  .closing .btn  { width: 100%; }
}