/* ============================================================
   Freelancer Zo — marketplace landing page
   ============================================================ */

:root {
  --ink:    #0f1629;
  --ink-2:  #4b5772;
  --ink-3:  #7f8aa4;
  --bg:     #ffffff;
  --bg-2:   #f6f8fc;
  --bg-3:   #eaf0fb;
  --line:   #e3e9f4;
  --line-2: #d6ddec;

  --brand:   #5a4fe0;
  --brand-2: #7c6bff;
  --brand-d: #443ac2;
  --brand-w: #f0eeff;
  --cyan:    #1aa3f0;
  --cyan-w:  #e6f5fe;
  --mint:    #0f9d76;
  --mint-w:  #e4f7f1;
  --amber:   #e08a00;
  --amber-w: #fdf3e0;
  --coral:   #f0564a;
  --coral-w: #feecea;
  --navy:    #0a1020;

  --grad: linear-gradient(135deg, #5a4fe0 0%, #7c6bff 55%, #1aa3f0 100%);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(15, 22, 41, .05);
  --sh-2: 0 8px 24px -10px rgba(15, 22, 41, .18);
  --sh-3: 0 24px 60px -20px rgba(15, 22, 41, .26);
  --sh-brand: 0 14px 34px -14px rgba(90, 79, 224, .7);

  --nav-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --t: 180ms cubic-bezier(.4, 0, .2, 1);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: 84px 0; }
.section--tint { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line); }

/* ------------------------------------------------------------
   Typography helpers
   ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 9px;
  border-radius: var(--r-pill);
  background: var(--brand-w);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.h2 {
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.16;
  letter-spacing: -.028em;
  font-weight: 750;
}
.lede {
  font-size: clamp(15px, 1.3vw, 17.5px);
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 62ch;
}
.head-center { text-align: center; }
.head-center .lede { margin-inline: auto; }
.mt-12 { margin-top: 12px; } .mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--sh-brand); }
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); background: #1b2740; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 16px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-weight: 650;
  font-size: 15px;
}
.link-arrow svg { transition: transform var(--t); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-1); }
.nav__in { display: flex; align-items: center; gap: 10px; height: 100%; }

.logo { display: flex; align-items: center; gap: 10px; margin-right: 14px; flex: none; }
.logo__mark {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--sh-brand);
}
.logo__text { font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.logo__text span { color: var(--brand); }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 550;
  color: var(--ink-2);
  transition: background var(--t), color var(--t);
}
.nav__link:hover { background: var(--bg-3); color: var(--ink); }
.nav__link svg { opacity: .55; }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); place-items: center; }
.nav__toggle:hover { background: var(--bg-3); }

.drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 55;
  background: #fff;
  padding: 20px;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--t);
}
.drawer.is-open { transform: none; opacity: 1; visibility: visible; }
.drawer a {
  display: block;
  padding: 15px 4px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.drawer .btn { width: 100%; margin-top: 10px; }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 76px;
  background:
    radial-gradient(900px 500px at 78% 6%, rgba(26, 163, 240, .14), transparent 62%),
    radial-gradient(760px 520px at 10% 96%, rgba(124, 107, 255, .16), transparent 60%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 22, 41, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 22, 41, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(760px 520px at 24% 34%, #000 10%, transparent 76%);
  pointer-events: none;
}
.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 52px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 57px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); max-width: 54ch; }

.hero__points { display: flex; flex-direction: column; gap: 11px; margin-top: 26px; }
.hero__point { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; color: var(--ink-2); }
.hero__point i {
  width: 22px; height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--mint-w);
  color: var(--mint);
  display: grid; place-items: center;
  margin-top: 1px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__note { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }

/* search */
.hsearch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 7px 7px 7px 16px;
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-2);
  max-width: 520px;
  transition: border-color var(--t), box-shadow var(--t);
}
.hsearch:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(90, 79, 224, .14); }
.hsearch svg { color: var(--ink-3); flex: none; }
.hsearch input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font: inherit;
  font-size: 15.5px;
  background: transparent;
  color: var(--ink);
}
.hsearch input::placeholder { color: var(--ink-3); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip {
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-2);
  transition: all var(--t);
}
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

/* hero art */
.hero__art { position: relative; min-height: 440px; }
.float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: 16px;
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}
.float--a { top: 0; left: 2%; width: 290px; z-index: 3; }
.float--b { top: 168px; right: 0; width: 268px; animation-delay: -2.4s; z-index: 4; }
.float--c { bottom: 6px; left: 12%; width: 258px; animation-delay: -4.6s; z-index: 2; }

.fcard__top { display: flex; align-items: center; gap: 10px; }
.fcard__ico {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  flex: none;
}
.fcard__t { font-size: 14px; font-weight: 700; line-height: 1.3; }
.fcard__s { font-size: 12px; color: var(--ink-3); }
.fcard__row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line);
}
.fcard__price { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.fcard__meta { font-size: 12px; color: var(--ink-3); }

.stars { display: inline-flex; gap: 2px; color: #f5a524; }

.bar { height: 6px; border-radius: 99px; background: var(--bg-3); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }

/* ------------------------------------------------------------
   Logo strip
   ------------------------------------------------------------ */
.strip { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip__label {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.strip__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  flex-wrap: wrap;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #97a2b8;
  transition: color var(--t);
}
.wordmark:hover { color: var(--ink-2); }
.wordmark svg { opacity: .75; }

/* ------------------------------------------------------------
   Cards / grids
   ------------------------------------------------------------ */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid > * { min-width: 0; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.card__ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  margin-bottom: 15px;
}
.card h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -.015em; }
.card p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); line-height: 1.62; }

/* project showcase */
.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.pcard__thumb {
  height: 150px;
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
}
.pcard__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
  background-size: 15px 15px;
}
.pcard__thumb svg { position: relative; z-index: 1; opacity: .95; }
.pcard__tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
}
.pcard__body { padding: 18px 20px 20px; }
.pcard__body h3 { font-size: 16.5px; font-weight: 700; line-height: 1.32; letter-spacing: -.015em; }
.pcard__body p { margin-top: 7px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.pcard__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.pcard__price { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.pcard__days { font-size: 13px; color: var(--ink-3); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding-top: 8px; }
.step__n {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 800;
  box-shadow: var(--sh-brand);
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.step p { margin-top: 7px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.step::after {
  content: "";
  position: absolute;
  top: 30px; left: 60px; right: -12px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 7px, transparent 7px 14px);
}
.step:last-child::after { display: none; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: all var(--t);
}
.cat:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--sh-2); }
.cat__ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.cat b { display: block; font-size: 14.5px; font-weight: 650; }
.cat span { font-size: 12.5px; color: var(--ink-3); }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px;
  border-radius: var(--r-xl);
  background: var(--grad);
  color: #fff;
  box-shadow: var(--sh-3);
  position: relative;
  overflow: hidden;
}
.stats::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 19px 19px;
  pointer-events: none;
}
.stat { position: relative; z-index: 1; text-align: center; }
.stat b { display: block; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.stat span { font-size: 14px; opacity: .88; }

/* testimonials */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote p { font-size: 15.5px; line-height: 1.68; color: var(--ink); }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex: none;
}
.quote__who b { display: block; font-size: 14.5px; }
.quote__who span { font-size: 12.5px; color: var(--ink-3); }

/* CTA band */
.cta {
  border-radius: var(--r-xl);
  padding: 56px 48px;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(26, 163, 240, .5), transparent 60%),
    var(--ink);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.18; letter-spacing: -.03em; font-weight: 780; }
.cta p { margin-top: 14px; font-size: 16.5px; color: rgba(255, 255, 255, .78); max-width: 58ch; margin-inline: auto; }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .34); }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.cta__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer { background: var(--navy); color: #aab4c8; padding: 62px 0 28px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 36px;
}
.footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.footer li { margin-bottom: 10px; }
.footer a { font-size: 14.5px; transition: color var(--t); }
.footer a:hover { color: #fff; }
.footer__brand .logo__text { color: #fff; }
.footer__brand .logo__text span { color: var(--brand-2); }
.footer__blurb { margin-top: 14px; font-size: 14.5px; line-height: 1.65; max-width: 34ch; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .07);
  display: grid; place-items: center;
  color: #cbd3e2;
  transition: all var(--t);
}
.social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.footer__bar {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13.5px;
}
.footer__bar nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }

.demo-note {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06);
  border: 1px dashed rgba(255, 255, 255, .2);
  font-size: 13px;
  line-height: 1.6;
}
.demo-note b { color: #fff; }

/* reveal-on-scroll — only hide when JS is live, so the page can never
   be left blank if the script fails or IntersectionObserver never fires */
.has-js .rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}
.has-js .rise.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .hero__in { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { min-height: 380px; max-width: 560px; }
  .grid--4, .cats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .nav__end .btn--ghost { display: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 30px 24px; gap: 26px; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 56px; }
  .hero__art { display: none; }
  .hero h1 { font-size: 33px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .grid--2, .grid--3, .grid--4, .cats { grid-template-columns: 1fr; }
  .grid { gap: 14px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step::after { display: none; }
  .card { padding: 20px; }
  .strip__row { gap: 26px 30px; }
  .wordmark { font-size: 15px; }
  .cta { padding: 38px 22px; }
  .cta__row .btn { flex: 1 1 100%; }
  .footer { padding: 46px 0 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__bar nav { margin-left: 0; gap: 14px; }
  .pcard__thumb { height: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .rise { opacity: 1; transform: none; }
}
